<script lang="ts" setup>
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'
import Right from './Right.vue'
import Left from './left.vue'

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>



<template>

    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="药品总库存" name="first">
        <Left></Left>
      </el-tab-pane>
      <el-tab-pane label="批次库存及价格" name="second">
        <Right></Right>
      </el-tab-pane>
    </el-tabs>

  </template>
  

  
  <style>
 
  </style>